<!DOCTYPE html>
<html lang="zh-CN" xmlns="" xmlns="">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>循环解决鸡兔同笼问题</title>
  <link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
  <h1>循环解决鸡兔同笼问题</h1>
  <label for="totalHeads">鸡兔同笼，鸡兔一共<input type="number" id="totalHeads" value="0" min="0">只。
    <for="totalLegs">笼子里脚一共<input type="number" id="totalLegs" value="0" min="0">只，
    <button onclick="calculate()">计算</button>
    <div></div>
    <textarea id="result" rows="4" cols="50" readonly></textarea>

  </label>
  <div id="result"></div>
</div>
<script src="script.js"></script>
</body>
</html>